<extend name="Public:base"/>

<block name="left">
	<ul>

    	<li><a href="{:U('Cate/lst')}">所有分类</a></li>

		
	</ul>
</block>
<block name="right">
	<div class="container clearfix">
	    <div class="sidebar-wrap">
	        <div class="sidebar-title">
	            <h1>菜单</h1>
	        </div>
	        <include file="Common/left" /> 
	    <!--/sidebar-->
	    <div class="main-wrap">

	        <div class="crumb-wrap">
	            <div class="crumb-list"><i class="icon-font"></i><a href="/jscss/admin/design/">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="__MODULE__/cate/lst">栏目管理</a><span class="crumb-step">&gt;</span><span>新增栏目</span></div>
	        </div>
	        <div class="result-wrap">
	            <div class="result-content">
	                <form action="" method="post" id="myform" name="myform" enctype="multipart/form-data">
	                    <input type="hidden" name="id" value="{$cateres.id}" />
	                    <table class="insert-tab" width="100%">
	                        <tbody><tr>
	                            <th width="120"><i class="require-red">*</i>上级分类：</th>
	                            <td>
	                                <select name="pid" id="catid" class="required">
	                                    <option value="0">顶级栏目</option>
	                                    <volist name="cates" id="vo">
	                                    <option <if condition="$vo['id'] eq $cateres['id']">style="display:none;"</if> value="{$vo.id}"><if condition="$vo['pid'] neq 0">|</if><?php echo str_repeat('-', $vo['level']*8);?>{$vo.name}</option>
	                                    </volist>
	                                </select>
	                            </td>
	                        </tr>
	                            <tr>
	                                <th><i class="require-red">*</i>栏目名称：</th>
	                                <td>
	                                    <input class="common-text required" id="title" name="name" size="50" value="{$cateres.name}" type="text">
	                                </td>
	                            </tr>
	                            <tr>
	                                <th>关键词：</th>
	                                <td><input class="common-text" name="keywords" size="50" value="{$cateres.keywords}" type="text"></td>
	                            </tr>
	                            <tr>
	                                <th>描述：</th>
	                                <td><textarea name="des" class="common-textarea" cols="55" rows="5">{$cateres.des}</textarea></td>
	                            </tr>
	                            <tr>
	                                <th>栏目类型：</th>
	                                <td>
	                                <input class="common-text" name="type" size="50" value="1" <if condition="$cateres['type'] eq 1">checked="checked"</if>  type="radio">列表
	                                <input class="common-text" name="type" size="50" value="2" <if condition="$cateres['type'] eq 2">checked="checked"</if> type="radio">单页
	                                <input class="common-text" name="type" size="50" value="3" <if condition="$cateres['type'] eq 3">checked="checked"</if> type="radio">留言
	                                <input class="common-text" name="type" size="50" value="4" <if condition="$cateres['type'] eq 4">checked="checked"</if> type="radio">招聘
	                                <input class="common-text" name="type" size="50" value="5" <if condition="$cateres['type'] eq 5">checked="checked"</if> type="radio">车辆列表
	                                <input class="common-text" name="type" size="50" value="6" <if condition="$cateres['type'] eq 6">checked="checked"</if> type="radio">荣誉列表
	                                <input class="common-text" name="type" size="50" value="7" <if condition="$cateres['type'] eq 7">checked="checked"</if> type="radio">求职表


	                                </td>
	                            </tr>
	                            <tr>
	                                <th>栏目级别：</th>
	                                <td>
	                                <input class="common-text" name="class" size="50" value="1" <if condition="$cateres['class'] eq 1">checked="checked"</if> type="radio">顶级
	                                <input class="common-text" name="class" size="50" value="2" <if condition="$cateres['class'] eq 2">checked="checked"</if> type="radio">二级
	                                <input class="common-text" name="class" size="50" value="3" <if condition="$cateres['class'] eq 3">checked="checked"</if> type="radio">三级
	                                </td>
	                            </tr>
	                            <tr>
	                                <th><i class="require-red">*</i>是否PC端：</th>
	                                <td><input name="pc" value="1" <if condition="$cateres['pc'] eq 1">checked="checked"</if> type="checkbox"></td>
	                            </tr>
	                            <tr>
	                                <th><i class="require-red">*</i>缩略图：</th>
	                                <td><input name="pic" id="" type="file">
	                                <if condition="$cateres['pic'] neq ''">
	                                    <img src="__ROOT__{$cateres.pic}" height="50" />
	                                    <else />
	                                    暂无缩略图
	                                </if>
	                                </td>
	                            </tr>
	                 
	                            <tr>
	                                <th></th>
	                                <td>
	                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
	                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
	                                </td>
	                            </tr>
	                        </tbody></table>
	                </form>
	            </div>
	        </div>

	    </div>
	    <!--/main-->
<!--  -->
</block>